package com.jcfk.system.domain.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.jcfk.common.business.entity.BaseEntity;
import lombok.Data;

import java.util.Date;

@Data
@TableName("t_sys_message_type")
public class SysMessage extends BaseEntity {

    private static final long serialVersionUID = 1L;
    /**
     * 版本号
     */
    @Version
    @TableField(value = "version")
    private Long version;

    @TableField(value = "msg_type")
    private String msgType;

    @TableField(value = "title")
    private String title;

    @TableField(value = "url")
    private String url;

    @TableField(value = "msg_body")
    private String msgBody;

    @TableField(value = "send_user_id")
    private String sendUserId;

    @TableField(value = "send_time")
    private Date sendTime;

    @TableField(value = "recevie_user_id")
    private String recevieUserId;

    @TableField(value = "read_time")
    private Date readTime;

    @TableField(value = "readed")
    private Integer readed;

    /**
     * 删除标志
     */
    @TableField(value = "deleted")
    private Integer deleted = 0;

    /**
     * 启用标志
     */
    @TableField(value = "enabled")
    private Integer enabled = 1;


    @TableField(value = "remarks")
    private String remarks = "";

    /**
     * 创建人姓名
     */
    @TableField(value = "created_user_name")
    private String createdUserName;

    /**
     * 最近一次更新人姓名
     */
    @TableField(value = "last_updated_user_name")
    private String lastUpdatedUserName;

}
